
<meta content="telephone=no" name="format-detection" />
<title>{$sys_name}</title>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <link href="/css/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/css/reset.css" rel="stylesheet">
    <link href="/css/css/style.css" rel="stylesheet">
    <script src="/js/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="/js/js/respond.js" type="text/javascript"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body class="d_bg">
<div class="d_top_bg">
    <div class="d_top">
        <a href="{:U('User/User/index')}">
        <div class="d_logo">
            <dl>
                <dt><img src="images/logo.png" alt=""></dt>
                <dd>
                    <p style="width: 115px;text-align: center">{$sys_name}</p>
                    <span>
                        <small>
                            <em style="width: 15px;display: block;border-bottom: 1px solid #b7e2de;float: left"></em> XINGFUBA&nbsp;<em style="width: 15px;display: block;border-bottom: 1px solid #b7e2de;float: right"></em>
                        </small>
                    </span>
                </dd>
            </dl>
        </div>
        </a>


        <div class="d_login">
            <a class="d_login_btn">
                <img src="images/d_login_btn.png" alt="">
                <span>
                     <if condition="$islogin gt 0 ">
                         <a href="{:U('User/User/index')}" style="color: #fff;padding-right: 5px">{$username}</a>
                         <a href="{:U('User/Index/logout')}" style="color: #fff" class="tc">
                         {$lang.tc}
                         </a>
                         <else/>
                         <a href="{:U('User/Index/login')}"style="color: #fff;margin-right: 5px">
                             {$lang.please_login}&nbsp;
                         </a>
                         <a href="{:U('Register/Index/index')}" style="color: #fff;display: none">
                             {$lang.reg_now}
                         </a>
                     </if>
                </span>
            </a>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="d_gg">
    <div class="z_list">
        <div class="z_img"><img src="images/d_gg_ico.png" alt=""></div>
        <div class="d_text scroll">
            <ul class="list">
                <foreach name="seatlist" item="item">
                    <li>
                        <a href="">
                            <font color="#fef6a1">{$item.username} </font>捐赠了{$item.seat_money} {$B}
                        </a>
                        <span>{:date('Y-m-d H:i:s',$item[time])}</span>
                    </li>

                </foreach>



            </ul>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="d_jc" style="display: none">
    <p>{$lang.jclj}</p>
    <span id="pond">{$pond}<em>{$B}</em></span>
    <input type="hidden" value="{$pond}" id="thispond">
</div>
<div class="d_time" style="display: none">
    <p id="top_p">{$lang.jljs}：<span id="top_time">{$shengyu}</span></p>
    <p id="top_p1" style="display: none">{$lang.jljs}：<span id="top_time1">{$shengyu}</span></p>
    <input type="hidden" value="{$second}" id="times">
    <input type="hidden" value="{$seat_money}" id="seat_money">
    <input type="hidden" value="{$B}" id="BB">
</div>


<div class="d_font" style="display: none">
    <div class="col-md-12 col-sm-12">
        <div class="d_text scroll" style="width: 100%">
            <ul class="list">
                <foreach name="jc_text" item="item">
                    <if condition="$item.text neq ''">
                        <li style="line-height: 55px;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                            {$item.text}
                        </li>
                    </if>
                </foreach>
            </ul>
        </div>

    </div>
</div>
<div class="d_btn">
    <a href="{:U('User/User/index')}" style="cursor: pointer"><span id="ljjz">进入系统</span></a>
</div>
<div id="sysmsg" class="sysmsg">
    <h3>{$lang.xxtx}</h3>
    <div id="showmsg" class="showmsg">
    </div>
    <div style="width: 180px;margin: auto;line-height: 30px;">
        <div class="close_msg" style="float: left;margin-right: 20px"><a href="{:U('Index/Index/doseat')}" style="color: #fff">{$lang.sure}</a></div>
        <div class="close_msg" onclick="closethis()" style="float: left;cursor: pointer">{$lang.close}</div>
    </div>
</div>
<script type="text/javascript">
    function show_jz(){
        var seat_money = $("#seat_money").val();
        var b = $("#BB").val();
        document.getElementById("showmsg").innerHTML= "确定捐赠" + seat_money + b +" 吗？";
        $("#sysmsg").show();
    }
    function closethis(){
        $("#sysmsg").hide();
    }
</script>
<input type="hidden" id="seat_on" value="{$seat_on}">
<!--
<script type="text/javascript" language="javascript">
    var times = $("#times").val();
    var thispond = $("#thispond").val();
    var seat_on = $("#seat_on").val();
    var timer = null;
    if(seat_on == 0 && thispond == 0){
        document.getElementById("top_p").style.display = "none";
        document.getElementById("top_p1").style.display = "block";
        document.getElementById("top_time1").innerHTML = "等待中...";
    }else{
    timer = setInterval(function(){
        var day=0,
                hour=0,
                minute=0,
                second= 0,//时间默认值
                hour1=0;
        if(times > 0){
            day = Math.floor(times / (60 * 60 * 24));
            hour = Math.floor(times / (60 * 60)) - (day * 24);
            hour1 = Math.floor(times / (60 * 60));
            minute = Math.floor(times / 60) - (day * 24 * 60) - (hour * 60);
            second = Math.floor(times) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
        }
        if (day <= 9) day = '0' + day;
        if (hour <= 9) hour = '0' + hour;
        if (minute <= 9) minute = '0' + minute;
        if (second <= 9) second = '0' + second;
        document.getElementById("top_time").innerHTML = hour1+":"+minute+":"+second;
        times--;
        console.log(times);
        $.ajax({
            type:"GET",
            url:"/index.php?m=User&c=User&a=checkpond",
            data:{time:times},
            dataType: "json",
            success:function(data){
                console.log(data.msg)
                if(data.error == 1){ //结算中
                    document.getElementById("pond").innerHTML = "0";
                    document.getElementById("ljjz").innerHTML = "结算中...";
                    document.getElementById("ljjz").onclick= function(){};
                    document.getElementById("top_p").style.display = "none";
                    document.getElementById("top_p1").style.display = "block";
                    document.getElementById("top_time1").innerHTML = "结算中";

                }else if(data.error == 0){ //结算完成
                    window.location.reload();
                }
            }
        });
        /*}*/
    },1000);
    }

    function show_jz(){
        var seat_money = $("#seat_money").val();
        var b = $("#BB").val();
        document.getElementById("showmsg").innerHTML= "确定捐赠" + seat_money + b +" 吗？";
        $("#sysmsg").show();
    }
    function closethis(){
        $("#sysmsg").hide();
    }
</script>-->
<div class="d_info" id="d_info">
    <div class="d_l">
        <p class="d_1"  id="d_1"><img src="images/d_1.png" ></p>
        <p class="d_2" id="d_2"><img src="images/d_2.png" ></p>
    </div>
    <div class="d_c dc1"  style="position: relative">
        <div id="summernote">
        </div>
        <textarea id="gzjs_cont" style="display: none">
          <div id="gzjs">{$gzjs}</div>
        </textarea>
        <a href="{:U('User/User/gzjs')}" style="position: absolute;right: 0;bottom: -20px">[了解更多>>]</a>
    </div>
    <script type="text/javascript">
        document.getElementById("summernote").innerHTML = $("#gzjs_cont").val();
    </script>
    <div class="d_r" id="dr">
        <p class="d_3" id="d_3"><img src="images/d_3.png" ></p>
        <p class="d_4"  id="d_4"><img src="images/d_4.png" ></p>
    </div>
</div>
<div class="clear"></div>
<div class="d_list">
    <div class="d_k left">
        <div class="d_l">
            <p class="d_l1"><img src="images/d_1.png" ></p>
            <p class="d_l2"><img src="images/d_2.png" ></p>
        </div>
        <div class="d_c">
            <img src="images/d_t1.png" alt="">
            <p>推荐计划</p>
                <span>{$tjjh}</span>

        </div>
        <div class="d_r">
            <p class="d_l3"><img src="images/d_3.png" ></p>
            <p class="d_l4"><img src="images/d_4.png" ></p>
        </div>

    </div>
    <div class="d_k left l20 t_20" style="display: none">
        <div class="d_l">
            <p class="d_l1"><img src="images/d_1.png" ></p>
            <p class="d_l2"><img src="images/d_2.png" ></p>
        </div>
        <div class="d_c">
            <img src="images/d_t2.png" alt="">
            <p>财富计划</p>
            <span>{$dwsm}</span>
        </div>
        <div class="d_r">
            <p class="d_l3"><img src="images/d_3.png" ></p>
            <p class="d_l4"><img src="images/d_4.png" ></p>
        </div>
    </div>
    <div class="d_k right t_20" style="display: none">
        <div class="d_l">
            <p class="d_l1"><img src="images/d_1.png" ></p>
            <p class="d_l2"><img src="images/d_2.png" ></p>
        </div>
        <div class="d_c">
            <div class="d_title">
                {$lang.yjdbp}
            </div>
            <div class="d_j">
                <img src="images/d_t3.png" alt="">
                <span>{$lang.fhjj}：<em>{$now_list}</em> {$B}</span>
            </div>
            <div class="clear"></div>
            <div class="d_ph scroll1">
                <small>
                    <em>{$lang.paiming}</em>
                    <em>{$lang.yonghu}</em>
                    <em>{$lang.bltjrs}</em>
                </small>
                <div class="list1">
                    <ul >

                        <volist name="list" id="item" offset="0" length='10'>
                            <li>
                                <em><font color="#adfffb">{$i}</font></em>
                                <em><font color="#fef6a1">{$item.user}</font></em>
                                <em><font color="#adfffb">{$item.num}</font></em>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
        <div class="d_r">
            <p class="d_l3"><img src="images/d_3.png" ></p>
            <p class="d_l4"><img src="images/d_4.png" ></p>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="d_info2" style="display: none">
    <div class="d_l">
        <p class="d_1"><img src="images/d_1.png" ></p>
        <p class="d_22"><img src="images/d_2.png" ></p>
    </div>
    <div class="d_cc dc1">
        <b>业绩分红规则：</b>{$yjsm}
    </div>
    <div class="d_r">
        <p class="d_3"><img src="images/d_3.png" ></p>
        <p class="d_44"><img src="images/d_4.png" ></p>
    </div>
</div>

</body>
</html>
<script src="/js/bootstrap.js"></script>
<script type="text/javascript">
    (function(doc, win) {
        var docEl = doc.documentElement,
                resizeEvt = 'orientationchange' in window ? 'orientationchange': 'resize',
                recalc = function() {
                    var clientWidth = docEl.clientWidth;
                    if (!clientWidth) return;
                    docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
                };
        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvt, recalc, false);
        doc.addEventListener('DOMContentLoaded', recalc, false);
    })(document, window);
</script>
<script type="text/javascript">
    function autoScroll(obj) {
        $(obj).find(".list").animate({
            marginTop: "-45px"
        }, 500, function() {
            $(this).css({
                marginTop: "0px"
            }).find("li:first").appendTo(this);
        })
    }
    $(function() {
        setInterval('autoScroll(".scroll")', 4000)

    })

</script>
<script type="text/javascript">


    var o = document.getElementById("summernote");
    var h = o.clientHeight||o.offsetHeight;
    document.getElementById("d_info").style.height =  Number(h) + Number(50)+ "px";

    var o1 = document.getElementById("d_2");
    var h1= o1.clientHeight||o1.offsetHeight;
    document.getElementById("d_1").style.height =  Number(h) + Number(50) - Number(110) +"px";

    var o3 = document.getElementById("d_4");
    var h3= o3.clientHeight||o3.offsetHeight;
    document.getElementById("d_3").style.height =  Number(h) + Number(50)- Number(110) +"px";

    //图片滚动 调用方法 imgscroll({speed: 30,amount: 1,dir: "up"});
    $.fn.imgscroll = function(o){
        var defaults = {
            speed: 40,
            amount: 0,
            width: 1,
            dir: "left"
        };
        o = $.extend(defaults, o);

        return this.each(function(){
            var _li = $("li", this);
            _li.parent().parent().css({overflow: "hidden", position: "relative"}); //div
            _li.parent().css({margin: "0", padding: "0", overflow: "hidden", position: "relative", "list-style": "none"}); //ul
            _li.css({position: "relative", overflow: "hidden"}); //li
            if(o.dir == "left") _li.css({float: "left"});

            //初始大小
            var _li_size = 0;
            for(var i=0; i<_li.size(); i++)
                _li_size += o.dir == "left" ? _li.eq(i).outerWidth(true) : _li.eq(i).outerHeight(true);

            //循环所需要的元素
            if(o.dir == "left") _li.parent().css({width: (_li_size*3)+"px"});
            _li.parent().empty().append(_li.clone()).append(_li.clone()).append(_li.clone());
            _li = $("li", this);

            //滚动
            var _li_scroll = 0;
            function goto(){
                _li_scroll += o.width;
                if(_li_scroll > _li_size)
                {
                    _li_scroll = 0;
                    _li.parent().css(o.dir == "left" ? { left : -_li_scroll } : { top : -_li_scroll });
                    _li_scroll += o.width;
                }
                _li.parent().animate(o.dir == "left" ? { left : -_li_scroll } : { top : -_li_scroll }, o.amount);
            }

            //开始
            var move = setInterval(function(){ goto(); }, o.speed);
            _li.parent().hover(function(){
                clearInterval(move);
            },function(){
                clearInterval(move);
                move = setInterval(function(){ goto(); }, o.speed);
            });
        });
    };
</script>
<script type="text/javascript">
    $(document).ready(function(){
        $(".list1").imgscroll({
            speed: 100,    //图片滚动速度
            amount: 0,    //图片滚动过渡时间
            width: 1,     //图片滚动步数
            dir: "up"   // "left" 或 "up" 向左或向上滚动
        });

    });
</script>
